﻿using System.Web.UI;

namespace Shp.Web.UI.WebControls.Iconized
{
   /// <summary>
   /// Helper control to add a HTML CSS Link element.
   /// </summary>
   [ToolboxData("<{0}:CssLink runat=server></{0}:CssLink>")]
   public class CssLink : System.Web.UI.HtmlControls.HtmlLink
   {
      public override void RenderControl(HtmlTextWriter writer)
      {
         this.Attributes.Add("rel", "stylesheet");
         this.Attributes.Add("type", "text/css");
         base.RenderControl(writer);
      }
   }
}
